package io.persimmon.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;

@ApiModel("分页数据")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageData<T> {
    @ApiModelProperty("数据总数")
    private long total;
    @ApiModelProperty("数据列表")
    private Collection<T> dataList;
}
